////////////管理端//////////////////////
// 首页村庄点位查询
export function getVillagePoint(params) {
  return uni.$http.post(`/manage/homePage`, { ...params })
}

// 首页村庄信息统计
export function getVillageInfoStatistic(params) {
  return uni.$http.get(`/manage/village/${params.villageId}`)
}

// 根据区域id查询区域统计
export function getAreaStatistics(params) {
  return uni.$http.get(`/manage/area/statistics/${params.areaId}`)
}

// 运维统计
export function getYunweiAreaStatistics(params) {
  return uni.$http.get(`/manage/om/statistics/${params.areaId}`)
}

// 企业响应时间排行
export function getResponseTimeRank(params) {
  return uni.$http.get(`/manage/responseTime/rank/${params.areaId}`)
}

// 终端总数
export function getManageTerminal(params) {
  return uni.$http.post(`/manage/terminal`, params)
}

// 终端能耗排行
export function getManageEnergyTerminal(params) {
  return uni.$http.post(`/manage/energy/consumption`, params)
}

// 设备总数
export function geEquList(params) {
  return uni.$http.post(`/manage/equipment/overview`, params)
}

// 村庄id查询村庄基本信息
export function getVillageInfo(villageId) {
  return uni.$http.get(`/manage/village/basic/${villageId}`)
}

// 村庄查询终端概况
export function getVillageTerminalInfo(villageId) {
  return uni.$http.get(`/manage/terminal/basic/${villageId}`)
}

// 根据终端id查询设备实时数据
export function geTerminalEquData(params) {
  return uni.$http.post(`/manage/terminal/equipment/rtd`, params)
}

// 根据终端id查询终端能耗
export function getTerminalEnergyData(params) {
  return uni.$http.get(`/manage/terminal/energyConsumption/${params.terminalId}`)
}

// 根据终端id查询设备最新数据
export function getTerminalLatestData(params) {
  return uni.$http.get(`/manage/equipment/latestData/${params.terminalId}`)
}

// 村庄id查询终端设备
export function getVillageEquList(params) {
  return uni.$http.get(`/manage/terminal/equipment/${params.villageId}`)
}

// 查询设备实时数据--查询条件为设备编号，开始结束时间
export function geEquDetailEquData(params) {
  return uni.$http.post(`/manage/equipment/rtd`, params)
}

// 全部工单列表 
export function getAllManageOmList(params) {
  return uni.$http.get(`/smallProgram/OMmission/allOmList/manage`, params)
}

// 获取字典
export function getDictData(params) {
  return uni.$http.get('/sys/dictItem/list', { ...params })
}

// 获取运维统计
export function getYunweiStatistic(params) {
  return uni.$http.get('/ps/psOm/getOmCount', { ...params })
}

// 获取村庄关联运维任务列表统计
export function getVillageYunweiStatistic(params) {
  return uni.$http.get('/ps/village/getMissionByVillage', { ...params })
}

// 运维统计详情
export function getYunWeiDetail(params) {
  return uni.$http.get(`/manage/om/statistics/detail/${params.areaId}`, { ...params })
}

// 历史报警信息
export function getHistoryPolice(params) {
  return uni.$http.post(`/screen/village/history/police`, params)
}

// 接驳井列表
export function getConnectWellList(params) {
  return uni.$http.get(`/paishui/pipPoint/queryConnect`, { ...params })
}

// 获取村庄分页列表 
export function getVillageList(params) {
  return uni.$http.get(`/ps/village/list`, { ...params, isFormData: true })
}

// 获取运维村庄数据统计（运维态势
export function getOperationMaintenanceSituation(params) {
  return uni.$http.get(`/ps/village/getVillageCountByArea`, { ...params, isFormData: true })
}

// 获取运维人员打卡详情 
export function getOperatorList(params) {
  return uni.$http.post(`/smallProgram/OMmission/queryOperatorCheck`, { ...params })
}